home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
GRAPHICS
/
GIF2RPC.SPK
/
source
/
16bpp_48bit
/
h
/
internal
< prev
Wrap
Text File
|
1995-10-07
|
852b
|
36 lines
/* internal.h
* AUTHOR: Cy Booker, cy@cheepnis.demon.co.uk
* LICENSE: FreeWare, Copyright (c) 1995 Cy Booker
* PURPOSE: common code
*/
#ifndef internal_h
#define internal_h
#include "16bpp_48bit.h"
#include "gif2rpc:map16bpp.h"
#define INPUT \
t = palette[rove[x]]; /* source pixel palette entry */\
red = (t >> (1 * 8)) & 0xff; red |= red << 8; /* scale to internal representation */\
grn = (t >> (2 * 8)) & 0xff; grn |= grn << 8;\
blu = (t >> (3 * 8)) & 0xff; blu |= blu << 8
#define PROCESS \
t = (*fn)(&error, red, grn, blu);\
*(((short *)rove) + x) = t; /* write pixel */\
red = error.colour.red; /* error */\
grn = error.colour.grn;\
blu = error.colour.blu
#endif /* internal_h */